package com.topisv.tms.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 快递单风格express_style
 * 
 * @author Administrator
 * 
 */
@Entity
@Table(name = "express_style")
public class ExpressStyle extends IdEntity {
	private static final long serialVersionUID = 1L;
	private String styleName;
	private LogisticsCompany logisticsCompany;
	private String styleContent;
	private String remarks;
	private int styleDefault;
	private String customerCode;//商家编码
	
	private String areaGroupCode;//网点编码
	
	private String type;//快递单类型，电子面单(mail),普通订单(normal)
	private String barCode;//面单号打印的条码类型  sf  3-汽运，7-空运
	private String cainiaoFlg;//菜鸟标示
	private String defineParam;//自定义内容
	
	/***begin add by zhangweize bug613顺丰快递增加保价字段*******/
    private Integer isInsured = 0;//是否保价 0 否 1 是 
    
    private Double insuredPoint = 0.0; // 保价费用的百分比
    /***end add by zhangweize bug613顺丰快递增加保价字段*******/
	
	public String getDefineParam() {
		return defineParam;
	}
	public void setDefineParam(String defineParam) {
		this.defineParam = defineParam;
	}
	public String getCainiaoFlg() {
		return cainiaoFlg;
	}
	public void setCainiaoFlg(String cainiaoFlg) {
		this.cainiaoFlg = cainiaoFlg;
	}
	public String getBarCode() {
		return barCode;
	}
	public void setBarCode(String barCode) {
		this.barCode = barCode;
	}
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getAreaGroupCode() {
		return areaGroupCode;
	}

	public void setAreaGroupCode(String areaGroupCode) {
		this.areaGroupCode = areaGroupCode;
	}

	private String customerName;
	@Transient
	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	@Column(name="customer_code")
	public String getCustomerCode() {
		return customerCode;
	}

	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}

	@Column(name="edefault")
	public int getStyleDefault() {
		return styleDefault;
	}

	public void setStyleDefault(int styleDefault) {
		this.styleDefault = styleDefault;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	private String styleImageUrl;

	@Column(name="styleImageUrl")
	public String getStyleImageUrl() {
		return styleImageUrl;
	}

	public void setStyleImageUrl(String styleImageUrl) {
		this.styleImageUrl = styleImageUrl;
	}

	

	public String getStyleContent() {
		return styleContent;
	}

	public void setStyleContent(String styleContent) {
		this.styleContent = styleContent;
	}

	@Column(name = "styleName")
	public String getStyleName() {
		return styleName;
	}

	public void setStyleName(String styleName) {
		this.styleName = styleName;
	}

	@ManyToOne
	@JoinColumn(name = "logistics_company_id")
	public LogisticsCompany getLogisticsCompany() {
		return logisticsCompany;
	}

	public void setLogisticsCompany(LogisticsCompany logisticsCompany) {
		this.logisticsCompany = logisticsCompany;
	}
    
    public Integer getIsInsured() {
        return isInsured;
    }
    
    public void setIsInsured(Integer isInsured) {
        this.isInsured = isInsured;
    }
    
    public Double getInsuredPoint() {
        return insuredPoint;
    }
    
    public void setInsuredPoint(Double insuredPoint) {
        this.insuredPoint = insuredPoint;
    }

}
